
package com.xinmao.quantitative.repository;

import com.xinmao.quantitative.entity.StockDayEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * @Title: StockDayRepository
 * @Author: XYe13
 * @Date: 4/30/2024 13:06
 */

public interface StockDayRepository extends JpaRepository<StockDayEntity, Integer> {

    StockDayEntity findByCodeAndDate(String code, String date);
    List<StockDayEntity> findByCodeAndDateBetweenOrderByDateAsc(String code, String startDate, String endDate);
}

